import { sequelize } from "../db/sequelize.js";
import { DataTypes } from "sequelize";

//暴露模型
export const Blog = sequelize.define("blogs", {
    id: {
        type: DataTypes.INTEGER,
        primaryKey: true, //设置主键
        allowNull: false,
        autoIncrement: true
    },
    name: DataTypes.STRING,
    address: DataTypes.STRING
})